package com.xcl.mapper;

import com.xcl.pojo.Category;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    //查询文章分类
    @Select("select * from category")
    public List<Category> findAll();
    //删除文章分类
    @Delete("delete from category where id = #{id}")
    public Integer deleteById(Integer id);
}
